package org.omg.TimeBase;

/**
 *	Generated from IDL definition of alias "TimeT"
 *	@author orbas IDL compiler 
 */

public final class TimeTHelper
{
	private static org.omg.CORBA.TypeCode _type = null;

	public static void insert (org.omg.CORBA.Any any, org.omg.TimeBase.ulonglong s)
	{
		org.omg.CORBA.portable.OutputStream out = any.create_output_stream ();
		any.type (type ());
		write (out, s);
		any.read_value (out.create_input_stream (), type ());
	}

	public static org.omg.TimeBase.ulonglong extract (final org.omg.CORBA.Any any)
	{
		return read (any.create_input_stream ());
	}

	public static org.omg.CORBA.TypeCode type ()
	{
		if( _type == null )
		{
			_type = org.omg.CORBA.ORB.init().create_alias_tc(org.omg.TimeBase.TimeTHelper.id(), "TimeT",org.omg.TimeBase.ulonglongHelper.type() );
		}
		return _type;
	}

	public static String id()
	{
		return "IDL:org/omg/TimeBase/TimeT:1.0";
	}
	public static org.omg.TimeBase.ulonglong read (final org.omg.CORBA.portable.InputStream _in)
	{
		org.omg.TimeBase.ulonglong _result;
		_result=org.omg.TimeBase.ulonglongHelper.read(_in);
		return _result;
	}

	public static void write (final org.omg.CORBA.portable.OutputStream _out, org.omg.TimeBase.ulonglong _s)
	{
		org.omg.TimeBase.ulonglongHelper.write(_out,_s);
	}
}
